<template>
  <!-- 工作汇报 -->
  <div id="dailyDetail">
    <el-form :model="form" label-width="100">
      <el-form-item
        :label="
          form.type == 1
            ? '今日工作：'
            : form.type == 2
            ? '本周工作：'
            : '本月工作：'
        "
      >
        <p>{{ form.summary }}</p>
      </el-form-item>
      <el-form-item
        :label="
          form.type == 1
            ? '明日计划：'
            : form.type == 2
            ? '下周规划：'
            : '下月规划：'
        "
      >
        <p>{{ form.workPlan }}</p>
      </el-form-item>
      <el-form-item label="待处理问题：">
        <p>{{ form.pendingIssues }}</p>
      </el-form-item>
      <el-form-item label="地址：">
        <p>{{ form.address }}</p>
      </el-form-item>
      <el-form-item label="附件:" style="width: 100%">
        <other-files ref="otherFiles" :files="form.otherFileList"></other-files>
      </el-form-item>
      <el-form-item label="汇报日期:">
        <p>{{ form.createTime }}</p>
      </el-form-item>
      <el-form-item label="汇报人:">
        <p>{{ form.username }}</p>
      </el-form-item>
    </el-form>
  </div>
</template>
<script>
import otherFiles from '@/components/otherFiles'
export default {
  name: 'dailyDetail',
  data () {
    return {

    }
  },
  components: {
    otherFiles,
  },
  mounted () {
  },
  props: {
    form: {
      type: Object,
      required: true,
      default: () => {
        return {}
      }
    }
  },
  methods: {

  }
}
</script>
<style lang='scss' scoped>
</style>